/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package isvp.ui.beans;

import javax.swing.JLayeredPane;
import javax.swing.JPanel;

/**
 *
 * @author jjophin
 */
public class ISVPJPanel extends JPanel{
    
    public ISVPJPanel() {
        super();
    }
    
    public void setOnTop() {
        JLayeredPane containerPane = (JLayeredPane)this.getParent();
        containerPane.setLayer(this, 0, 0);
        this.setVisible(true);
    }
    
    public void setAtBottom() {
        JLayeredPane containerPane = (JLayeredPane)this.getParent();
        containerPane.setLayer(this, 0, -1);        
        setVisible(false);
    }
}